package com.ytjj.bigdata.controller;

import com.ytjj.bigdata.model.dto.AdsAppActivityDto;
import com.ytjj.bigdata.service.AdsAppActivityService;
import com.ytjj.common.api.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/adsAppActivity")
@Slf4j
public class AdsAppActivityController {
    @Resource
    private AdsAppActivityService adsAppActivityService;

    @PostMapping("/appOrderList")
    public CommonResult appOrderList(@RequestBody AdsAppActivityDto adsAppActivityDto) {
        return CommonResult.success(adsAppActivityService.selectAdsAppActivity(adsAppActivityDto));
    }
}
